/*
 * @Descripttion: 
 * @version: 
 * @Author: cyj
 * @Date: 2022-12-05 10:58:08
 */
import { defineStore } from 'pinia'

export const useHotListStore = defineStore('HotList',{
    state:()=>{
        return {
            //热搜数据
           HotList:[],

           //搜索历史数据
           searchList:[]
        }
    },
    getters:{

    },
    actions:{

    },
    persist:{
        enabled:true,
        strategies:[
            // 存到本地存储中 —— searchList
            {storage:localStorage,paths:['searchList']}
        ]
    }
})